package com.hdaccp.cloud.service;

import com.hdaccp.cloud.bean.Users;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "T171CLOUD",fallbackFactory = UsersServiceClientFactory.class)
public interface UsersServiceClient {
    @RequestMapping("/getUsers/{id}")
    public Users getUsers(@PathVariable("id") int id) ;
    @RequestMapping("/query")
    public List<Users> query() ;
}
